#ifndef CLIENTFORM_H
#define CLIENTFORM_H

#include <QWidget>
#include <QKeyEvent>
#include <QMessageBox>
#include <QFileDialog>
#include <cstdio>
#include <dlfcn.h>
#include "ClientTCP.h"

namespace Ui {
    class ClientForm;
}

class ClientForm : public QWidget {
    Q_OBJECT
public:
    ClientForm(QWidget *parent = 0);
    ~ClientForm();
    void setProtocol(ClientProtocol*);

protected:
    void changeEvent(QEvent *e);
    void keyPressEvent(QKeyEvent *e);

private:
    Ui::ClientForm *ui;
    ClientProtocol *protocol;

private slots:
    void on_pushButton_clicked();
    void on_buttonDisconnect_clicked();
    void on_buttonLeft_clicked();
    void on_buttonRight_clicked();
    void on_buttonDown_clicked();
    void on_buttonUp_clicked();
    void on_buttonConnect_clicked();
};

#endif // CLIENTFORM_H
